package com.caozhi.mspeoject.nb_message.remote;

import com.woniuxy.boot.common.bean.EsMessage;
import com.woniuxy.boot.common.dto.EsMessageDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("nb-search")
public interface EsMessageRemote {
    @PostMapping("messageSearch/get")
    List<EsMessage> getMessages(@RequestBody EsMessageDTO esMessageDTO);
}
